import { LAYOUT } from '@/router/constants';
import type { RouteRecordItem } from 'vc/src/router';

const Environmental: RouteRecordItem = {
  path: '/sewage',
  component: LAYOUT,
  redirect: '/sewage/sewagePermit',
  meta: {
    title: '排污许可',
    menuIndex: 2,
    subMenuIndex: 0,
  },
  children: [
    {
      path: 'sewagePermit',
      component: () => import('@/views/modules/sewagePermit/sewagePermit/index.vue'),
      meta: {
        title: '排污许可信息'
      }
    },
    {
      path: 'sewageRegister',
      component: () => import('@/views/modules/sewagePermit/sewageRegister/index.vue'),
      meta: {
        title: '排污登记信息'
      }
    },
    {
      path: 'sewagePermitBeforeApply',
      component: () => import('@/views/modules/sewagePermit/sewagePermitBeforeApply/index.vue'),
      meta: {
        title: '排污申请公开'
      }
    },
    {
      path: 'sewageRevoke',
      component: () => import('@/views/modules/sewagePermit/sewageRevoke/index.vue'),
      meta: {
        title: '许可证撤销'
      }
    },
    {
      path: 'sewageCancellation',
      component: () => import('@/views/modules/sewagePermit/sewageCancellation/index.vue'),
      meta: {
        title: '许可证注销'
      }
    },
    {
      path: 'sewageLoss',
      component: () => import('@/views/modules/sewagePermit/sewageLoss/index.vue'),
      meta: {
        title: '许可证遗失'
      }
    },
    {
      path: 'sewageRectification',
      component: () => import('@/views/modules/sewagePermit/sewageRectification/index.vue'),
      meta: {
        title: '限期整改'
      }
    },
    {
      path: 'sewageImplementationReport',
      component: () => import('@/views/modules/sewagePermit/sewageImplementationReport/index.vue'),
      meta: {
        title: '执行报告'
      }
    }
  ]
};

export default Environmental;
